import { axios } from '@/utils/request'

/**
 * 查询问卷题目表
 *
 * @author wang
 * @date 2022-01-05 09:45:18
 */
export function questionnaireSubjectPage (parameter) {
  return axios({
    url: '/questionnaireSubject/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 问卷题目表列表
 *
 * @author wang
 * @date 2022-01-05 09:45:18
 */
export function questionnaireSubjectList (parameter) {
  return axios({
    url: '/questionnaireSubject/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加问卷题目表
 *
 * @author wang
 * @date 2022-01-05 09:45:18
 */
export function questionnaireSubjectAdd (parameter) {
  return axios({
    url: '/questionnaireSubject/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑问卷题目表
 *
 * @author wang
 * @date 2022-01-05 09:45:18
 */
export function questionnaireSubjectEdit (parameter) {
  return axios({
    url: '/questionnaireSubject/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除问卷题目表
 *
 * @author wang
 * @date 2022-01-05 09:45:18
 */
export function questionnaireSubjectDelete (parameter) {
  return axios({
    url: '/questionnaireSubject/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出问卷题目表
 *
 * @author wang
 * @date 2022-01-05 09:45:18
 */
export function questionnaireSubjectExport (parameter) {
  return axios({
    url: '/questionnaireSubject/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
